package ru.javadevelop.homefinans.svc;

import com.neurospeech.wsclient.*;
import org.w3c.dom.*;

public class HomeFinansService_SendCategories extends WSObject
{
	
	private ArrayOfCategory _categories;
	public ArrayOfCategory getcategories(){
		return _categories;
	}
	public void setcategories(ArrayOfCategory value){
		_categories = value;
	}
	
	public static HomeFinansService_SendCategories loadFrom(Element root) throws Exception
	{
		if(WSHelper.isNull(root)){
			return null;
		}
		HomeFinansService_SendCategories result = new HomeFinansService_SendCategories();
		result.load(root);
		return result;
	}
	
	
	protected void load(Element root) throws Exception
	{
		this.setcategories(ArrayOfCategory.loadFrom(WSHelper.getElement(root,"categories")));
	}
	
	
	
	public Element toXMLElement(WSHelper ws, Element root)
	{
		Element e = ws.createElement("ns6:SendCategories");
		fillXML(ws,e);
		return e;
	}
	
	public void fillXML(WSHelper ws,Element e)
	{
		if(_categories != null)
			ws.addChildNode(e, "ns6:categories",null,_categories);
	}
	
}
